"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var BaseService_1 = require('./BaseService');
var DocsDao_1 = require('../dao/DocsDao');
var DocsService = (function (_super) {
    __extends(DocsService, _super);
    function DocsService() {
        _super.call(this);
        this.docsDao = new DocsDao_1.DocsDao();
    }
    DocsService.prototype.addDoc = function (doc, callback) {
        this.docsDao.add(doc, callback);
    };
    DocsService.prototype.getDoc = function (docId, callback) {
        this.docsDao.get(docId, callback);
    };
    DocsService.prototype.getDocsByGroupId = function (groupId, callback) {
        this.docsDao.getsByGroudId(groupId, callback);
    };
    DocsService.prototype.getDocsByProjectId = function (projectId, callback) {
        this.docsDao.getsByProjectId(projectId, callback);
    };
    DocsService.prototype.udpateDoc = function (doc, callback) {
        this.docsDao.updateDoc(doc, callback);
    };
    DocsService.prototype.deleteDoc = function (docId, callback) {
        this.docsDao.delete(docId, callback);
    };
    return DocsService;
}(BaseService_1.BaseService));
exports.DocsService = DocsService;
